package grape.auth.rest.clientdetails.mapper;

import grape.auth.service.clientdetails.po.OauthClientDetails;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.auth.rest.clientdetails.form.OauthClientDetailsCreateForm;
import grape.auth.rest.clientdetails.form.OauthClientDetailsUpdateForm;
import grape.auth.rest.clientdetails.form.OauthClientDetailsListPageForm;
import grape.auth.rest.clientdetails.vo.OauthClientDetailsVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 服务客户端表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-31
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OauthClientDetailsWebMapper extends WebMapper<OauthClientDetailsVo, OauthClientDetails> {

    OauthClientDetails formToPo(OauthClientDetailsCreateForm f);
    OauthClientDetails formToPo(OauthClientDetailsUpdateForm f);
    OauthClientDetails formToPo(OauthClientDetailsListPageForm f);
}
